package com.finance.system.support.bean;

import java.util.Collection;

/**
 * Created by sogaaIT005 on 2016/12/15.
 */
public class PageData<T> {

    private Collection<T> data;
    private int total;

    private PageData(Collection<T> data, int total) {
        this.data = data;
        this.total = total;
    }

    public static <T> PageData<T> create(Collection<T> data, int total) {
        return new PageData<T>(data, total);
    }

    public Collection<T> getData() {
        return data;
    }

    public void setData(Collection<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
